package com.jfinal.bloglist.model;

import com.jfinal.core.ActionKey;
import com.jfinal.plugin.activerecord.Model;

/**
 * Title:
 * Description:
 *
 * @version 2.0
 * @author: Yung Fu(FUYUNGCN AT GMAIL DOT com)
 * @since: 14-10-11 下午10:52
 */
public class Blog extends Model<Blog> {

    public final static Blog dao = new Blog();

    /**
     * 根据t_id获取
     * @return BlogType
     */
    @ActionKey("getBlogs")
    public BlogType getBlogTypeById() {
        return BlogType.dao.findById(get("t_id"));
    }
}

